<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>EOS.IO: contracts/eoslib/transaction.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="eos-logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">EOS.IO
   &#160;<span id="projectnumber">DAWN1.1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_ae9b15dd87e066e1908bbd90e8f38627.html">contracts</a></li><li class="navelem"><a class="el" href="dir_3fea0bf1ce879ce73e6ecec98007efcd.html">eoslib</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">transaction.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="transaction_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="transaction_8h.html">eoslib/transaction.h</a>&gt;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="print_8hpp.html">eoslib/print.hpp</a>&gt;</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceeos.html">eos</a> {</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;   <span class="keyword">class </span>Transaction;</div><div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="classeos_1_1_message.html">   22</a></span>&#160;   <span class="keyword">class </span><a class="code" href="classeos_1_1_message.html">Message</a> {</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;   <span class="keyword">public</span>:</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;      <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Payload, <span class="keyword">typename</span> ...Permissions&gt;</div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="classeos_1_1_message.html#a356a9c3596b63f6c76350252427aaee6">   25</a></span>&#160;      <a class="code" href="classeos_1_1_message.html#a356a9c3596b63f6c76350252427aaee6">Message</a>(<span class="keyword">const</span> <a class="code" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&amp; code, <span class="keyword">const</span> <a class="code" href="group__types.html#ga4c11ea58b1daa61a364225a757a05cd2">FuncName</a>&amp; type, <span class="keyword">const</span> Payload&amp; payload, Permissions... permissions ) </div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;         : handle(<a class="code" href="group__transactioncapi.html#ga6940a3e31486bef36409f857e0ed7c72">messageCreate</a>(code, type, &amp;payload, sizeof(Payload)))</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;      {</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;         <a class="code" href="classeos_1_1_message.html#a0e68f632ec8aee71f4a8a909c8ed7c40">addPermissions</a>(permissions...);</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;      }</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;      <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Payload&gt;</div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="classeos_1_1_message.html#a36ea35d105db634bd74ae7170bfc5297">   32</a></span>&#160;      <a class="code" href="classeos_1_1_message.html#a36ea35d105db634bd74ae7170bfc5297">Message</a>(<span class="keyword">const</span> <a class="code" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&amp; code, <span class="keyword">const</span> <a class="code" href="group__types.html#ga4c11ea58b1daa61a364225a757a05cd2">FuncName</a>&amp; type, <span class="keyword">const</span> Payload&amp; payload ) </div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;         : handle(<a class="code" href="group__transactioncapi.html#ga6940a3e31486bef36409f857e0ed7c72">messageCreate</a>(code, type, &amp;payload, sizeof(Payload)))</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;      {</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;      }</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classeos_1_1_message.html#a2858265f85675233cd4efbb934c4631a">   37</a></span>&#160;      <a class="code" href="classeos_1_1_message.html#a2858265f85675233cd4efbb934c4631a">Message</a>(<span class="keyword">const</span> <a class="code" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&amp; code, <span class="keyword">const</span> <a class="code" href="group__types.html#ga4c11ea58b1daa61a364225a757a05cd2">FuncName</a>&amp; type) </div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;         : handle(<a class="code" href="group__transactioncapi.html#ga6940a3e31486bef36409f857e0ed7c72">messageCreate</a>(code, type, nullptr, 0))</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;      {</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;      }</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;      <span class="comment">// no copy constructor due to opaque handle</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;      <a class="code" href="classeos_1_1_message.html#a356a9c3596b63f6c76350252427aaee6">Message</a>( <span class="keyword">const</span> <a class="code" href="classeos_1_1_message.html">Message</a>&amp; ) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classeos_1_1_message.html#aa05ef1b00fd732601bca906ff883b425">   45</a></span>&#160;      <a class="code" href="classeos_1_1_message.html#aa05ef1b00fd732601bca906ff883b425">Message</a>( <a class="code" href="classeos_1_1_message.html">Message</a>&amp;&amp; msg ) {</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;         handle = msg.handle;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;         msg.handle = <a class="code" href="group__transactioncapi.html#ga4b337c3f5a641ee82e84d209a8bba0d7">InvalidMessageHandle</a>;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;      }</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classeos_1_1_message.html#abce53f1a044eb929297efa1b566de74f">   50</a></span>&#160;      <a class="code" href="classeos_1_1_message.html#abce53f1a044eb929297efa1b566de74f">~Message</a>() {</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;         <span class="keywordflow">if</span> (handle != <a class="code" href="group__transactioncapi.html#ga4b337c3f5a641ee82e84d209a8bba0d7">InvalidMessageHandle</a>) {</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;            <a class="code" href="group__transactioncapi.html#ga77f1412808c199633b41bf2f20e3cb45">messageDrop</a>(handle);</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;            handle = <a class="code" href="group__transactioncapi.html#ga4b337c3f5a641ee82e84d209a8bba0d7">InvalidMessageHandle</a>;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;         }</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;      }</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classeos_1_1_message.html#a0e68f632ec8aee71f4a8a909c8ed7c40">   57</a></span>&#160;      <span class="keywordtype">void</span> <a class="code" href="classeos_1_1_message.html#a0e68f632ec8aee71f4a8a909c8ed7c40">addPermissions</a>(<a class="code" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> account, <a class="code" href="group__types.html#ga4bd93be9c597a8d7b6a1a3504ca63e83">PermissionName</a> permission) {</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;         <a class="code" href="group__transactioncapi.html#gabf3f53f695c30abe4bd48f9b3341a016">messageRequirePermission</a>(handle, account, permission);</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;      }</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;      <span class="keyword">template</span>&lt;<span class="keyword">typename</span> ...Permissions&gt;</div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="classeos_1_1_message.html#a102ea7cbb3f25b19be6d26d35b883446">   62</a></span>&#160;      <span class="keywordtype">void</span> <a class="code" href="classeos_1_1_message.html#a102ea7cbb3f25b19be6d26d35b883446">addPermissions</a>(<a class="code" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> account, <a class="code" href="group__types.html#ga4bd93be9c597a8d7b6a1a3504ca63e83">PermissionName</a> permission, Permissions... permissions) {</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;         <a class="code" href="classeos_1_1_message.html#a0e68f632ec8aee71f4a8a909c8ed7c40">addPermissions</a>(account, permission);</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;         <a class="code" href="classeos_1_1_message.html#a0e68f632ec8aee71f4a8a909c8ed7c40">addPermissions</a>(permissions...);</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;      }</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classeos_1_1_message.html#a9caf8352a2fbfb71dbe5bc7774b18947">   67</a></span>&#160;      <span class="keywordtype">void</span> <a class="code" href="classeos_1_1_message.html#a9caf8352a2fbfb71dbe5bc7774b18947">send</a>() {</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;         assertValidHandle();</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;         <a class="code" href="group__transactioncapi.html#ga1f9346e3ef3fae10cf5fee5b9a0270ca">messageSend</a>(handle);</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;         handle = <a class="code" href="group__transactioncapi.html#ga4b337c3f5a641ee82e84d209a8bba0d7">InvalidMessageHandle</a>;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;      }</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;   <span class="keyword">private</span>:</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;      <span class="keywordtype">void</span> assertValidHandle() {</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;         <a class="code" href="group__systemcapi.html#gae2a6ebaf48fe7c69f847ae18f109d09a">assert</a>(handle != <a class="code" href="group__transactioncapi.html#ga4b337c3f5a641ee82e84d209a8bba0d7">InvalidMessageHandle</a>, <span class="stringliteral">&quot;attempting to send or modify a finalized message&quot;</span> );</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;      }</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;      <a class="code" href="group__transactioncapi.html#gaa42fca851fc0bcfd9dffc229c9552ce5">MessageHandle</a> handle;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classeos_1_1_message.html#a49982aa325e19f0956d42fde9132caa2">   80</a></span>&#160;      <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classeos_1_1_transaction.html">Transaction</a>;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;   };</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="classeos_1_1_transaction.html">   84</a></span>&#160;   <span class="keyword">class </span><a class="code" href="classeos_1_1_transaction.html">Transaction</a> {</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;   <span class="keyword">public</span>:</div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="classeos_1_1_transaction.html#a8eb27619d1624e0f8ba2e29d203a2aa1">   86</a></span>&#160;      <a class="code" href="classeos_1_1_transaction.html#a8eb27619d1624e0f8ba2e29d203a2aa1">Transaction</a>() </div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;         : handle(<a class="code" href="group__transactioncapi.html#ga180dc33e735f9631ed9a800d7b0a511e">transactionCreate</a>())</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;      {}</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;      <span class="comment">// no copy constructor due to opaque handle</span></div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;      <a class="code" href="classeos_1_1_message.html#a49982aa325e19f0956d42fde9132caa2">Transaction</a>( <span class="keyword">const</span> <a class="code" href="classeos_1_1_transaction.html">Transaction</a>&amp; ) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="classeos_1_1_transaction.html#a6e98939c13c55676c96103c751c58af1">   93</a></span>&#160;      <a class="code" href="classeos_1_1_transaction.html#a6e98939c13c55676c96103c751c58af1">Transaction</a>( <a class="code" href="classeos_1_1_transaction.html">Transaction</a>&amp;&amp; trx ) {</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;         handle = trx.handle;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;         trx.handle = <a class="code" href="group__transactioncapi.html#ga58df052e13ad2a3d54a2b1c99a2a8925">InvalidTransactionHandle</a>;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;      }</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="classeos_1_1_transaction.html#accc58f2a09d0e6acb9010f257821b46e">   98</a></span>&#160;      <a class="code" href="classeos_1_1_transaction.html#accc58f2a09d0e6acb9010f257821b46e">~Transaction</a>() {</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;         <span class="keywordflow">if</span> (handle != <a class="code" href="group__transactioncapi.html#ga58df052e13ad2a3d54a2b1c99a2a8925">InvalidTransactionHandle</a>) {</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;            <a class="code" href="group__transactioncapi.html#ga37162c1f843ae69d0134be29b1cde61f">transactionDrop</a>(handle);</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;            handle = <a class="code" href="group__transactioncapi.html#ga58df052e13ad2a3d54a2b1c99a2a8925">InvalidTransactionHandle</a>;</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;         }</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;      }</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="classeos_1_1_transaction.html#a635d3c6c6c6dd64855c5ccc5daecb93c">  105</a></span>&#160;      <span class="keywordtype">void</span> <a class="code" href="classeos_1_1_transaction.html#a635d3c6c6c6dd64855c5ccc5daecb93c">addScope</a>(<a class="code" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> scope, <span class="keywordtype">bool</span> readOnly = <span class="keyword">false</span>) {</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;         assertValidHandle();</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;         <a class="code" href="group__transactioncapi.html#ga347cc9c284bc25ed1d67b596e2320cdc">transactionRequireScope</a>(handle, scope, readOnly ? 1 : 0);</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;      }</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classeos_1_1_transaction.html#a223c31ce9b4395d81a7ba8d882202d09">  110</a></span>&#160;      <span class="keywordtype">void</span> <a class="code" href="classeos_1_1_transaction.html#a223c31ce9b4395d81a7ba8d882202d09">addMessage</a>(<a class="code" href="classeos_1_1_message.html">Message</a> &amp;message) {</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;         assertValidHandle();</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;         message.assertValidHandle();</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;         <a class="code" href="group__transactioncapi.html#ga1290a226d7828410020ed2954ffa5fa5">transactionAddMessage</a>(handle, message.handle);</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;         message.handle = <a class="code" href="group__transactioncapi.html#ga4b337c3f5a641ee82e84d209a8bba0d7">InvalidMessageHandle</a>;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;      }</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div><div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="classeos_1_1_transaction.html#a5f05f2ab68625efa54831c81d0da9d7b">  117</a></span>&#160;      <span class="keywordtype">void</span> <a class="code" href="classeos_1_1_transaction.html#a5f05f2ab68625efa54831c81d0da9d7b">send</a>() {</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;         assertValidHandle();</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;         <a class="code" href="group__transactioncapi.html#ga01eab43648b29422885d4d59a2864aaf">transactionSend</a>(handle);</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;         handle = <a class="code" href="group__transactioncapi.html#ga58df052e13ad2a3d54a2b1c99a2a8925">InvalidTransactionHandle</a>;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;      }</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="classeos_1_1_transaction.html#aea35b75279cd8f6b48f7a0f9b7a8673c">  123</a></span>&#160;      <a class="code" href="group__transactioncapi.html#ga7a095ea0165891d5ee1dbd8ee40e32cb">TransactionHandle</a> <span class="keyword">get</span>() {</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;         <span class="keywordflow">return</span> handle;</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;      }</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;   <span class="keyword">private</span>:</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;      <span class="keywordtype">void</span> assertValidHandle() {</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;         <a class="code" href="group__systemcapi.html#gae2a6ebaf48fe7c69f847ae18f109d09a">assert</a>(handle != <a class="code" href="group__transactioncapi.html#ga58df052e13ad2a3d54a2b1c99a2a8925">InvalidTransactionHandle</a>, <span class="stringliteral">&quot;attempting to send or modify a finalized transaction&quot;</span> );</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;      }</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;      <a class="code" href="group__transactioncapi.html#ga7a095ea0165891d5ee1dbd8ee40e32cb">TransactionHandle</a> handle;</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;   };</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;} <span class="comment">// namespace eos</span></div><div class="ttc" id="group__systemcapi_html_gae2a6ebaf48fe7c69f847ae18f109d09a"><div class="ttname"><a href="group__systemcapi.html#gae2a6ebaf48fe7c69f847ae18f109d09a">assert</a></div><div class="ttdeci">void assert(uint32_t test, const char *cstr)</div><div class="ttdoc">Aborts processing of this message and unwinds all pending changes. </div></div>
<div class="ttc" id="print_8hpp_html"><div class="ttname"><a href="print_8hpp.html">print.hpp</a></div></div>
<div class="ttc" id="group__transactioncapi_html_ga4b337c3f5a641ee82e84d209a8bba0d7"><div class="ttname"><a href="group__transactioncapi.html#ga4b337c3f5a641ee82e84d209a8bba0d7">InvalidMessageHandle</a></div><div class="ttdeci">#define InvalidMessageHandle</div><div class="ttdef"><b>Definition:</b> transaction.h:66</div></div>
<div class="ttc" id="group__types_html_gad67b43dc23285b01176f4c181c59fc23"><div class="ttname"><a href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a></div><div class="ttdeci">uint64_t AccountName</div><div class="ttdef"><b>Definition:</b> types.h:24</div></div>
<div class="ttc" id="classeos_1_1_transaction_html"><div class="ttname"><a href="classeos_1_1_transaction.html">eosio::Transaction</a></div><div class="ttdef"><b>Definition:</b> transaction.hpp:84</div></div>
<div class="ttc" id="classeos_1_1_message_html_abce53f1a044eb929297efa1b566de74f"><div class="ttname"><a href="classeos_1_1_message.html#abce53f1a044eb929297efa1b566de74f">eosio::Message::~Message</a></div><div class="ttdeci">~Message()</div><div class="ttdef"><b>Definition:</b> transaction.hpp:50</div></div>
<div class="ttc" id="classeos_1_1_transaction_html_a8eb27619d1624e0f8ba2e29d203a2aa1"><div class="ttname"><a href="classeos_1_1_transaction.html#a8eb27619d1624e0f8ba2e29d203a2aa1">eosio::Transaction::Transaction</a></div><div class="ttdeci">Transaction()</div><div class="ttdef"><b>Definition:</b> transaction.hpp:86</div></div>
<div class="ttc" id="classeos_1_1_transaction_html_a223c31ce9b4395d81a7ba8d882202d09"><div class="ttname"><a href="classeos_1_1_transaction.html#a223c31ce9b4395d81a7ba8d882202d09">eosio::Transaction::addMessage</a></div><div class="ttdeci">void addMessage(Message &amp;message)</div><div class="ttdef"><b>Definition:</b> transaction.hpp:110</div></div>
<div class="ttc" id="group__types_html_ga4c11ea58b1daa61a364225a757a05cd2"><div class="ttname"><a href="group__types.html#ga4c11ea58b1daa61a364225a757a05cd2">FuncName</a></div><div class="ttdeci">uint64_t FuncName</div><div class="ttdef"><b>Definition:</b> types.h:29</div></div>
<div class="ttc" id="classeos_1_1_message_html_a9caf8352a2fbfb71dbe5bc7774b18947"><div class="ttname"><a href="classeos_1_1_message.html#a9caf8352a2fbfb71dbe5bc7774b18947">eosio::Message::send</a></div><div class="ttdeci">void send()</div><div class="ttdef"><b>Definition:</b> transaction.hpp:67</div></div>
<div class="ttc" id="classeos_1_1_message_html"><div class="ttname"><a href="classeos_1_1_message.html">eosio::Message</a></div><div class="ttdef"><b>Definition:</b> transaction.hpp:22</div></div>
<div class="ttc" id="group__transactioncapi_html_gaa42fca851fc0bcfd9dffc229c9552ce5"><div class="ttname"><a href="group__transactioncapi.html#gaa42fca851fc0bcfd9dffc229c9552ce5">MessageHandle</a></div><div class="ttdeci">uint32_t MessageHandle</div><div class="ttdef"><b>Definition:</b> transaction.h:65</div></div>
<div class="ttc" id="group__transactioncapi_html_ga37162c1f843ae69d0134be29b1cde61f"><div class="ttname"><a href="group__transactioncapi.html#ga37162c1f843ae69d0134be29b1cde61f">transactionDrop</a></div><div class="ttdeci">void transactionDrop(TransactionHandle trx)</div><div class="ttdoc">drop a pending transaction </div></div>
<div class="ttc" id="classeos_1_1_transaction_html_a5f05f2ab68625efa54831c81d0da9d7b"><div class="ttname"><a href="classeos_1_1_transaction.html#a5f05f2ab68625efa54831c81d0da9d7b">eosio::Transaction::send</a></div><div class="ttdeci">void send()</div><div class="ttdef"><b>Definition:</b> transaction.hpp:117</div></div>
<div class="ttc" id="classeos_1_1_message_html_a2858265f85675233cd4efbb934c4631a"><div class="ttname"><a href="classeos_1_1_message.html#a2858265f85675233cd4efbb934c4631a">eosio::Message::Message</a></div><div class="ttdeci">Message(const AccountName &amp;code, const FuncName &amp;type)</div><div class="ttdef"><b>Definition:</b> transaction.hpp:37</div></div>
<div class="ttc" id="classeos_1_1_message_html_aa05ef1b00fd732601bca906ff883b425"><div class="ttname"><a href="classeos_1_1_message.html#aa05ef1b00fd732601bca906ff883b425">eosio::Message::Message</a></div><div class="ttdeci">Message(Message &amp;&amp;msg)</div><div class="ttdef"><b>Definition:</b> transaction.hpp:45</div></div>
<div class="ttc" id="classeos_1_1_transaction_html_a6e98939c13c55676c96103c751c58af1"><div class="ttname"><a href="classeos_1_1_transaction.html#a6e98939c13c55676c96103c751c58af1">eosio::Transaction::Transaction</a></div><div class="ttdeci">Transaction(Transaction &amp;&amp;trx)</div><div class="ttdef"><b>Definition:</b> transaction.hpp:93</div></div>
<div class="ttc" id="group__transactioncapi_html_ga1f9346e3ef3fae10cf5fee5b9a0270ca"><div class="ttname"><a href="group__transactioncapi.html#ga1f9346e3ef3fae10cf5fee5b9a0270ca">messageSend</a></div><div class="ttdeci">void messageSend(MessageHandle msg)</div><div class="ttdoc">send a pending message as an inline message </div></div>
<div class="ttc" id="classeos_1_1_message_html_a49982aa325e19f0956d42fde9132caa2"><div class="ttname"><a href="classeos_1_1_message.html#a49982aa325e19f0956d42fde9132caa2">eosio::Message::Transaction</a></div><div class="ttdeci">friend class Transaction</div><div class="ttdef"><b>Definition:</b> transaction.hpp:80</div></div>
<div class="ttc" id="group__transactioncapi_html_ga7a095ea0165891d5ee1dbd8ee40e32cb"><div class="ttname"><a href="group__transactioncapi.html#ga7a095ea0165891d5ee1dbd8ee40e32cb">TransactionHandle</a></div><div class="ttdeci">uint32_t TransactionHandle</div><div class="ttdef"><b>Definition:</b> transaction.h:62</div></div>
<div class="ttc" id="namespaceeos_html"><div class="ttname"><a href="namespaceeos.html">eos</a></div><div class="ttdef"><b>Definition:</b> math.hpp:8</div></div>
<div class="ttc" id="group__transactioncapi_html_ga77f1412808c199633b41bf2f20e3cb45"><div class="ttname"><a href="group__transactioncapi.html#ga77f1412808c199633b41bf2f20e3cb45">messageDrop</a></div><div class="ttdeci">void messageDrop(MessageHandle msg)</div><div class="ttdoc">discard a pending message </div></div>
<div class="ttc" id="classeos_1_1_message_html_a356a9c3596b63f6c76350252427aaee6"><div class="ttname"><a href="classeos_1_1_message.html#a356a9c3596b63f6c76350252427aaee6">eosio::Message::Message</a></div><div class="ttdeci">Message(const AccountName &amp;code, const FuncName &amp;type, const Payload &amp;payload, Permissions...permissions)</div><div class="ttdef"><b>Definition:</b> transaction.hpp:25</div></div>
<div class="ttc" id="group__transactioncapi_html_ga58df052e13ad2a3d54a2b1c99a2a8925"><div class="ttname"><a href="group__transactioncapi.html#ga58df052e13ad2a3d54a2b1c99a2a8925">InvalidTransactionHandle</a></div><div class="ttdeci">#define InvalidTransactionHandle</div><div class="ttdef"><b>Definition:</b> transaction.h:63</div></div>
<div class="ttc" id="group__transactioncapi_html_ga347cc9c284bc25ed1d67b596e2320cdc"><div class="ttname"><a href="group__transactioncapi.html#ga347cc9c284bc25ed1d67b596e2320cdc">transactionRequireScope</a></div><div class="ttdeci">void transactionRequireScope(TransactionHandle trx, AccountName scope, int readOnly=0)</div><div class="ttdoc">require a scope to process a pending transaction </div></div>
<div class="ttc" id="group__transactioncapi_html_gabf3f53f695c30abe4bd48f9b3341a016"><div class="ttname"><a href="group__transactioncapi.html#gabf3f53f695c30abe4bd48f9b3341a016">messageRequirePermission</a></div><div class="ttdeci">void messageRequirePermission(MessageHandle msg, AccountName account, PermissionName permission)</div><div class="ttdoc">require a permission for the pending message </div></div>
<div class="ttc" id="group__transactioncapi_html_ga01eab43648b29422885d4d59a2864aaf"><div class="ttname"><a href="group__transactioncapi.html#ga01eab43648b29422885d4d59a2864aaf">transactionSend</a></div><div class="ttdeci">void transactionSend(TransactionHandle trx)</div><div class="ttdoc">send a pending transaction </div></div>
<div class="ttc" id="classeos_1_1_transaction_html_a635d3c6c6c6dd64855c5ccc5daecb93c"><div class="ttname"><a href="classeos_1_1_transaction.html#a635d3c6c6c6dd64855c5ccc5daecb93c">eosio::Transaction::addScope</a></div><div class="ttdeci">void addScope(AccountName scope, bool readOnly=false)</div><div class="ttdef"><b>Definition:</b> transaction.hpp:105</div></div>
<div class="ttc" id="group__transactioncapi_html_ga1290a226d7828410020ed2954ffa5fa5"><div class="ttname"><a href="group__transactioncapi.html#ga1290a226d7828410020ed2954ffa5fa5">transactionAddMessage</a></div><div class="ttdeci">void transactionAddMessage(TransactionHandle trx, MessageHandle msg)</div><div class="ttdoc">finalize the pending message and add it to the transaction </div></div>
<div class="ttc" id="group__types_html_ga4bd93be9c597a8d7b6a1a3504ca63e83"><div class="ttname"><a href="group__types.html#ga4bd93be9c597a8d7b6a1a3504ca63e83">PermissionName</a></div><div class="ttdeci">uint64_t PermissionName</div><div class="ttdef"><b>Definition:</b> types.h:25</div></div>
<div class="ttc" id="group__transactioncapi_html_ga180dc33e735f9631ed9a800d7b0a511e"><div class="ttname"><a href="group__transactioncapi.html#ga180dc33e735f9631ed9a800d7b0a511e">transactionCreate</a></div><div class="ttdeci">TransactionHandle transactionCreate()</div><div class="ttdoc">create a pending transaction </div></div>
<div class="ttc" id="transaction_8h_html"><div class="ttname"><a href="transaction_8h.html">transaction.h</a></div></div>
<div class="ttc" id="classeos_1_1_transaction_html_accc58f2a09d0e6acb9010f257821b46e"><div class="ttname"><a href="classeos_1_1_transaction.html#accc58f2a09d0e6acb9010f257821b46e">eosio::Transaction::~Transaction</a></div><div class="ttdeci">~Transaction()</div><div class="ttdef"><b>Definition:</b> transaction.hpp:98</div></div>
<div class="ttc" id="classeos_1_1_message_html_a102ea7cbb3f25b19be6d26d35b883446"><div class="ttname"><a href="classeos_1_1_message.html#a102ea7cbb3f25b19be6d26d35b883446">eosio::Message::addPermissions</a></div><div class="ttdeci">void addPermissions(AccountName account, PermissionName permission, Permissions...permissions)</div><div class="ttdef"><b>Definition:</b> transaction.hpp:62</div></div>
<div class="ttc" id="group__transactioncapi_html_ga6940a3e31486bef36409f857e0ed7c72"><div class="ttname"><a href="group__transactioncapi.html#ga6940a3e31486bef36409f857e0ed7c72">messageCreate</a></div><div class="ttdeci">MessageHandle messageCreate(AccountName code, FuncName type, void const *data, int size)</div><div class="ttdoc">create a pending message </div></div>
<div class="ttc" id="classeos_1_1_message_html_a36ea35d105db634bd74ae7170bfc5297"><div class="ttname"><a href="classeos_1_1_message.html#a36ea35d105db634bd74ae7170bfc5297">eosio::Message::Message</a></div><div class="ttdeci">Message(const AccountName &amp;code, const FuncName &amp;type, const Payload &amp;payload)</div><div class="ttdef"><b>Definition:</b> transaction.hpp:32</div></div>
<div class="ttc" id="classeos_1_1_message_html_a0e68f632ec8aee71f4a8a909c8ed7c40"><div class="ttname"><a href="classeos_1_1_message.html#a0e68f632ec8aee71f4a8a909c8ed7c40">eosio::Message::addPermissions</a></div><div class="ttdeci">void addPermissions(AccountName account, PermissionName permission)</div><div class="ttdef"><b>Definition:</b> transaction.hpp:57</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
